package com.slkj.shilixiaoyuanapp.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created  on 2018-09-21
 *
 * @author 唐开阔
 * @describe
 */
public class DepartmentEntity implements Parcelable{

    private int dId;
    private String dName;

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    protected DepartmentEntity(Parcel in) {
        dId = in.readInt();
        dName = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(dId);
        dest.writeString(dName);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<DepartmentEntity> CREATOR = new Creator<DepartmentEntity>() {
        @Override
        public DepartmentEntity createFromParcel(Parcel in) {
            return new DepartmentEntity(in);
        }

        @Override
        public DepartmentEntity[] newArray(int size) {
            return new DepartmentEntity[size];
        }
    };
}
